import requests
import json
from public import config
header=config.header
def registsms(code):
    url=config.domain+'/ja/v1/test/sms/regist'
    date={'phone':'15515515515','code':'1234'}  
    r=requests.get(url,params=date,headers=header) 
    code=r.json()['code']
    return code
    
